export default ($axios) => {
    return {
        //首页
        getGoodsData: () => $axios.get('/index/goods'),
        getBannerData: params => $axios.get('/index/banner', { params }),
        getTechnologyData: () => $axios.get('/index/technology'),
        getLinkData: () => $axios.get('/index/link'),
        getNavbarData: () => $axios.get('index/navbar'),
        getSearch: params => $axios.get('goods/search', { params }),

        //产品
        getcategoryList: () => $axios.get('/goods/categoryList'),
        getGoodsList: () => $axios.get('/goods/index'),
        getGoods: params => $axios.get('/goods/list', { params }),
        getGoodsDetail: params => $axios.get('goods/get', { params }),
        getGoodsFace: params => $axios.get('/goods/face', { params }),
        getGoodsMore: () => $axios.get('goods/more'),

        //解决方案
        getSolutionData: () => $axios.get('/solution/index'),
        postMessageData: data => $axios.post('/solution/addMessage', data),

        //服务支持
        getPolicyListData: () => $axios.get('/service/policyList'),
        getPolicyData: params => $axios.get('/service/policy', { params }),
        getQuestionListData: () => $axios.get('/question/typeList'),
        getQuestionData: params => $axios.get('/question/index', { params }),
        postRepairData: data => $axios.post('/service/repair', data),
        getServiceData: params => $axios.get('service/goods', { params }),

        //关于我们
        getAboutBrandData: () => $axios.get('/about/index'),
        getAboutEventData: () => $axios.get('/about/record'),
        getAboutTechnologyData: () => $axios.get('/about/technology'),
        //新闻
        getNewsIndex: params => $axios.get('/news/index', { params }),
        getNewsData: params => $axios.get('/news/get', { params }),
        getNewsList: () => $axios.get('/news/list'),
        //联系我们
        getContact: () => $axios.get('/about/contract'),
        getServiceInfo: () => $axios.get('/index/info'),



        // 有参数的情况
        //   postData: data => $axios.post('/api/get_index_data', data),
        //   getData: params => $axios.get('/api/get_index_data', {params})
        // ...your other api function
    }
}
